CC = gcc

CFLAGS = -Wall -Wextra -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK -Wno-stringop-truncation -Wno-unused-result

SRCS = gbafix.c

ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif

.PHONY: all clean

all: gbafix$(EXE)
	@:

gbafix$(EXE): $(SRCS)
	$(CC) $(CFLAGS) $< -o $@

clean:
	$(RM) gbafix gbafix.exe
